//
//  MyMapNavigationController.h
//  iPhoneKML
//
//  Created by Benjamin Blundell on 12/11/2009.
//  Copyright 2009 Section9. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <SystemConfiguration/SystemConfiguration.h>
#import "MyMapViewController.h"
#import "MyFeaturesViewController.h"
#import "GoogleMapViewController.h"
#import "MyMapGrab.h"
#import "IndicatorView.h"


@interface MyMapNavigationController : UINavigationController <MyMapGrabDelegate, 
	MyMapViewControllerDelegate, MyFeaturesViewControllerDelegate> {

@private
	MyMapViewController			*myMapViewController;
	MyFeaturesViewController	*myFeaturesViewController;
	GoogleMapViewController		*googleMapViewController;
	MyMapGrab					*grabber;
	UIActivityIndicatorView		*indicator;
		
	NSMutableDictionary			*masterData;
		
	IBOutlet UIButton			*startFetch;
	IBOutlet UITextField		*googleUsernameField;
	IBOutlet UITextField		*googlePasswordField;	

}

@property (nonatomic, retain) UIActivityIndicatorView	*indicator;
@property (nonatomic, retain) IBOutlet UIButton			*startFetch;
@property (nonatomic, retain) IBOutlet UITextField		*googleUsernameField;
@property (nonatomic, retain) IBOutlet UITextField		*googlePasswordField;	
@property (nonatomic, retain) NSMutableDictionary		*masterData;

- (IBAction)startGoogleFetch:(id)sender;
- (IBAction)useOfflineMaps:(id)sender;

- (void) saveCurrentMaps;
- (void) saveUserDetails;
- (BOOL) checkConnection:(const char*) host_name;
- (void) drawIndicator;
- (BOOL) loadCurrentMaps;

@end
